package fr.cdj.thebox.client.content.ui;

import net.customware.gwt.presenter.client.widget.WidgetDisplay;

import com.google.gwt.event.dom.client.HasClickHandlers;
import com.google.gwt.user.client.ui.HasValue;

import fr.cdj.thebox.shared.FileMetaData;

public interface FileItemDisplay extends WidgetDisplay {

	public interface Factory {
		FileItemDisplay create(FileMetaData fileMetaData);
	}
	
	HasClickHandlers getHasItemClickHandlers();
	
	HasValue<Boolean> getHasSelectedValue();

	void addFileItem(FileItemDisplay display);
	
	void clearItems();

	void setOpened(boolean opened);

	void setLoading();

}
